package graph

/**
访问器
*/
type GraphVisitor func(a interface{})

/**
图
*/
type IGraph interface {
	addNode(value interface{})
	addEdge(start, end int)

	dfsReverse(visitor GraphVisitor)
	dfsNonReverse(visitor GraphVisitor)

	bfs(visitor GraphVisitor)
}
